//
//  PKRequest.h
//  Learn
//
//  Created by apple on 2024/4/15.
//  Copyright © 2024 迟建国. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PkUserInfoModel.h"
#import "PkMatchModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface PKRequest : NSObject
/// 背单词首页
/// - Parameter reslutBlock:
+(void)request_getPkHomeDataResult:(void(^)(PkUserInfoModel *model,BOOL isDone))reslutBlock;


/// 随机匹配 单词pk
/// - Parameter reslutBlock: <#reslutBlock description#>
+(void)request_getPkMatchDataResult:(void(^)(PkMatchModel *model,BOOL isDone))reslutBlock;



/// 保存pk结果
/// - Parameters:
///   - type: 1战胜 0战败
///   - resultBlock:
+(void)request_postSavePkResultType:(NSString *)type reslut:(void(^)(BOOL isRequest))resultBlock;

@end

NS_ASSUME_NONNULL_END
